package com.jianbing.shasha.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jianbing.common.annotation.Excel;
import com.jianbing.common.core.domain.BaseEntity;

/**
 * 用户每天学习测试正确率对象 shasha_user_accuracy
 * 
 * @author ruoyi
 * @date 2024-06-09
 */
public class ShashaUserAccuracy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @Excel(name = "编号")
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 正确率 */
    @Excel(name = "正确率")
    private String accuracy;

    public void setLevel(Long level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "ShashaUserAccuracy{" +
                "id=" + id +
                ", userId=" + userId +
                ", accuracy='" + accuracy + '\'' +
                ", type='" + type + '\'' +
                ", level=" + level +
                ", insertTime=" + insertTime +
                '}';
    }

    /** 正确率类型 */
    @Excel(name = "正确率类型")
    private String type;


    public Long getLevel() {
        return level;
    }

    @Excel(name="记录对应天数")
    private Long level;

    /** 记录插入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录插入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date insertTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setAccuracy(String accuracy) 
    {
        this.accuracy = accuracy;
    }

    public String getAccuracy() 
    {
        return accuracy;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setInsertTime(Date insertTime) 
    {
        this.insertTime = insertTime;
    }

    public Date getInsertTime() 
    {
        return insertTime;
    }

}
